package model

import "RoccBlog/global"

type Permission struct {
	Id       int    `json:"id" gorm:"primaryKey autoIncrement"`
	Name     string `json:"name" gorm:"unique"`
	URI      string `json:"uri" gorm:"type:varchar(120)"`
	Method   string `json:"method" gorm:"type:varchar(30)"`
	ParentId int    `json:"parentId"`
}

func init() {
	global.RegisterModel(&Permission{})
}
